package com.szcinda.fitness.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
public class TrainPlanDto implements Serializable {
    private String openId;
    private List<String> trainDemand = new ArrayList<>();
    private String remark;

    public void convertDemand(String trainDemand){
        if(trainDemand!=null && trainDemand.length()>0){
            this.trainDemand.addAll(Arrays.asList(trainDemand.split(",")));
        }
    }
}
